@import "../common/theme";

.main {
    font-family: sans-serif;
    padding: 10px 130px 20px;
}

.divSearchRowWrapper {
    width: 100vw;

    padding: 20px 110px;

    margin-bottom: 20px;

    background-color: white;
}

.divContentWrapper {
    width: 100%;

    padding: 30px;

    background-color: white;

    border-radius: 18px;

    box-shadow: 0 6px 20px 0 rgb(37 43 50 / 10%);
}

.divEmptyWrapper {
    margin: 120px 0;
}

.divUpper {
    display: flex;
}

.imgPreview {
    width: 320px;
    height: 320px;
    border-radius: 12px;
}

.divUpperRight {
    margin-left: 30px;

    flex-grow: 1;

    display: flex;
    flex-direction: column;

    > [class~="name"] {
        font-size: 20px;
        font-weight: bold;
    }

    > [class~="seller"] {
        font-size: 14px;
        margin-top: 10px;

        > [class~="seller-icon"] {
            margin-right: 6px;
        }
    }

    > [class~="purchase-count"] {
        font-size: 14px;
        margin-top: 10px;
        color: rgba(0, 0, 0, 0.4);
    }

    > [class~="price"] {
        margin-top: 15px;

        color: $price-color;
        font-size: 28px;

        > em {
            font-size: 16px;
            font-style: normal;
        }
    }

    > [class~="count"] {
        margin-top: 20px;

        display: flex;
        align-items: center;

        > [class~="count-label"] {
            font-size: 14px;
            color: #7f7f7f;
        }

        > [class~="in-count"] {
            width: 130px;
        }

        > [class~="remaining"] {
            font-size: 14px;
            margin-left: 20px;
        }
    }

    > [class~="buttons"] {
        display: flex;

        margin-top: auto;

        > button {
            color: white;
            font-size: 15px;
            font-weight: bold;
            border: none;
            cursor: pointer;
            user-select: none;
        }

        > button[class="buy"] {
            padding: 15px 36px;

            background: linear-gradient(
                90deg,
                rgb(255, 119, 0),
                rgb(255, 73, 0)
            );
            box-shadow: rgb(255 119 0 / 20%) 0px 9px 13px 0px;
            border-top-left-radius: 34px;
            border-bottom-left-radius: 34px;
        }

        > button[class="add-cart"] {
            padding: 15px 36px;
            background: linear-gradient(
                90deg,
                rgb(255, 203, 0),
                rgb(255, 148, 2)
            );
            box-shadow: rgb(255 203 0 / 20%) 0px 9px 13px 0px;
            border-top-right-radius: 34px;
            border-bottom-right-radius: 34px;
        }

        > button[class="manage"] {
            padding: 15px 36px;
            background: linear-gradient(
                90deg,
                rgb(255, 203, 0),
                rgb(255, 148, 2)
            );
            box-shadow: rgb(255 203 0 / 20%) 0px 9px 13px 0px;
            border-radius: 34px;
        }
    }

    > [class~="sold-out"] {
        width: fit-content;
        margin-top: auto;
        color: white;
        font-size: 15px;
        font-weight: bold;

        user-select: none;

        padding: 15px 36px;
        background: rgb(93, 255, 79);
        box-shadow: rgb(255 203 0 / 20%) 0px 9px 13px 0px;
        border-radius: 34px;
    }
}

.divLower {
    margin-top: 30px;

    > [class~="description-title"] {
        font-size: 18px;
    }

    > [class~="description"] {
        font-size: 14px;
        line-height: 30px;
        width: 900px;
        margin: 0 auto;
    }
}
